package cloud.xlh.digital_power_order.exceptionhandle;

import cloud.xlh.exceptionhandle.service.BusinessExceptionAssert;
import cloud.xlh.exceptionhandle.service.IResponseEnum;
import lombok.AllArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/10/6 20:07
 * @ Description:
 */
@AllArgsConstructor
public enum DPOBusinessExceptionEnum implements IResponseEnum, BusinessExceptionAssert {
    /**
     * DisruptorException
     **/
    DISRUPTOR_EXCEPTION(000000001 , "disruptor框架异常"),
    ;

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
